<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:65:"E:\wamp\www\tp5\public/../application/admin\view\login\index.html";i:1554990688;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="/tp5/public/static/bootstrap-3.3.7/css/bootstrap.min.css" />
		<script type="text/javascript" src="/tp5/public/static/js/jquery-3.3.1.min.js"></script>
	  	<script type="text/javascript">
		 $(function(){
		        $("#vcode-img").click(function(){
		          var src=$(this).attr("src");
		          var newSrc=src+"?"+Math.random();
		          $(this).attr("src",newSrc);
		      });
		    });
		</script>
		
	</head>
	<body>
		<form class="form-horizontal" action="<?php echo url('check'); ?>" method="post">
		  <div class="form-group">
		    <label for="username" class="col-sm-2 control-label">用户名</label>
		    <div class="col-sm-3">
		      <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名">
		    </div>
		  </div>
		  <div class="form-group">
		    <label for="password" class="col-sm-2 control-label">密码</label>
		    <div class="col-sm-3">
		      <input type="password" class="form-control" id="password" placeholder="请输入密码">
		    </div>
		  </div>
		  <div class="form-group">
		    <label for="password" class="col-sm-2 control-label">验证码</label>
		    <div class="col-sm-1">
		      <input type="text" class="form-control" id="vcode" name="vcode" placeholder="请输入验证码">
		    </div>
		    <div class="col-sm-2">
		      <div><img src="<?php echo url('vcode'); ?>" alt="captcha" id="vcode-img" /></div>
		    </div>  
		  </div>
		  <div class="form-group">
		    <div class="col-sm-offset-2 col-sm-10">
		      <button type="submit" class="btn btn-default">登陆</button>
		    </div>
		  </div>
		</form>
<!--	  <script type="text/javascript">
		var code = document.getElementById("code");
		code.onclick = function(){
		this.src = this.src+'?'+Math.random();
		}
	  </script>-->

	</body>
	
</html>
